package newapproach.elements;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import newapproach.writer.XmlElement;

import org.dom4j.Element;

public class YBaseElement {

	private String name;

	public YBaseElement(Element element) {
		name = element.attributeValue("name");
	}

	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return "<"+ this.getClass().getSimpleName() +" name=\"" + name + "\">"+
				toStringContent()				
				+"</"+this.getClass().getSimpleName()+">";
	}

	protected String toStringContent() {
		return "";
	}
	
	protected String j_var(String var){
		return "${"+var+"}";
	}


}
